<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>用户中心 - {$kx.config.sitename}</title>
    <link rel="stylesheet" type="text/css" href="{$kx.config.resurl}/template/kxmobileno2/css/ptm.min.css" />
    <link rel="stylesheet" type="text/css" href="{$kx.config.resurl}/template/kxmobileno2/css/skin.min.css" />
    <link rel="stylesheet" type="text/css" href="{$kx.config.resurl}/template/kxmobileno2/css/font-awesome.min.css" />
</head>
<body>
<div class="ptm-content my-header">
    <div class="my-info">
        <img src="{$userinfo.avatar}">
        <p class="nickname">{if IS_LOGIN}{$userinfo.name}{else}<a href="{link=user.public.login}" style="color:#fff">请登录/注册</a>{/if}</p>
    </div>
</div>
<div class="ptm-content ptm-card" style="margin-top:15px;">
    <ul class="ptm-list-view" style="">
        {if IS_LOGIN}
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" href="{link=user.mark.index}">我的书架{if $userinfo.marknum}<span class="ptm-badge ptm-badge-danger">{$userinfo.marknum}</span>{/if}</a>
        </li>
        {/if}
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" href="{link=user.history.index}">浏览历史</a>
        </li>
    </ul>
</div>
{if IS_LOGIN}
<div class="ptm-content ptm-card">
    <ul class="ptm-list-view">
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" {link=user.third.index}>账户绑定</a>
        </li>
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" href="{link=user.info.pwd}">修改密码</a>
        </li>
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" {link=user.habbit.index}>阅读设置</a>
        </li>
    </ul>
</div>
{else}

<div class="ptm-content ptm-card" style="margin-top:15px;">
    <ul class="ptm-list-view" style="">
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" href="{link=user.public.login}">登陆账号</a>
        </li>

        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" href="{link=user.public.register}">注册账号</a>
        </li>
    </ul>
</div>
{/if}
<div class="ptm-content ptm-card">
    <ul class="ptm-list-view">
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" href="{link=page.index.detail key=disdaimer}">免责声明</a>
        </li>
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" href="{link=page.index.detail key=about}">关于我们</a>
        </li>
    </ul>
</div>
{if IS_LOGIN}
<div style="padding:0 10px;margin-bottom: 30px;">
    <a class="ptm-btn ptm-btn-danger ptm-btn-block" style="padding:5px 0;" href="{link=user.auth.logout}">退出登陆</a>
</div>
{/if}
</body>
</html>